//#include "StdAfx.h"
#include "AudioHostForServer.h"

CAudioHostForServer::CAudioHostForServer(void)
{
}

CAudioHostForServer::~CAudioHostForServer(void)
{
}

bool CAudioHostForServer::BindMixer(CServerMixer* pM)
{
	return CAudioHost::BindMixer((CMixer*)pM);
}

bool CAudioHostForServer::BindMixer(CMixer* pM)
{
	return CAudioHost::BindMixer(pM);
}

CServerMixer* CAudioHostForServer::GetBindedMixer(void)
{
	return (CServerMixer*)pMixer;
}

int CAudioHostForServer::HandleSamples()
{
	if (pMixer)
	{
		return pMixer->Process();
	}
	return -1;
}

void CAudioHostForServer::SetSampleRate( unsigned int iSamplePerSec )
{
	CAudioHost::SetSampleRate(iSamplePerSec);
}
